-- GENERATED SPELL FOR [Gurubashi Axe Thrower] --


function spell0_11350(pUnit, Event) --@Axe Flurry,Self--
pUnit:FullCastSpellOnTarget(24018,pUnit)
pUnit:RegisterEvent('Sorts_11350', 10000, 1)
end

function spell1_11350(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_11350', 574, 1)
end

function spell2_11350(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(22887,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11350', 637, 1)
end

function Sorts_11350(pUnit, Event)
local choix_sorts_11350 = math.random(0, 2)
if choix_sorts_11350 == 0 then
pUnit:RegisterEvent('spell0_11350', 1, 1)
end
if choix_sorts_11350 == 1 then
pUnit:RegisterEvent('spell1_11350', 1, 1)
end
if choix_sorts_11350 == 2 then
pUnit:RegisterEvent('spell2_11350', 1, 1)
end
end

function mob11350_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11350', math.random(1500, 3000), 1)
end

function mob11350_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11350_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11350_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11350, 1, 'mob11350_Action')
RegisterUnitEvent(11350, 2, 'mob11350_Leave')
RegisterUnitEvent(11350, 3, 'mob11350_Kill')
RegisterUnitEvent(11350, 4, 'mob11350_Die')
